﻿<html>
    <head>
        <title>Блог</title>
        <link rel='stylesheet' type='text/css' href='main.css'> 
    </head>
    
    <body>
        <div class='hat'><a href='index.php'>Блог</a></div>
        <div class='ed_place'>
        <ul class='ed_form'>
         <? if (isset($this->newArt->notice)) { echo'<b>'.$this->newArt->notice.'</b><br><br>'; } ?>
        <form action='index.php?controller=write' method='post'>
            <li>Тема: <input type='text' name='subject' value="<?if(isset($this->newArt->subject)) echo $this->newArt->subject;?>"><br><br>
            <li>Теги: <input type='text' name='tags' value="<?if(isset($this->newArt->tags)) echo $this->newArt->getStringTags();?>"><br><br>
            <li> <textarea name="text" cols='35' rows='10'><?if(isset($this->newArt->text)) echo $this->newArt->text; else echo 'Статья';?></textarea><br><br>
            <li><input type='submit' value='Опубликовать'>
            <input type='button' value='Отмена' onclick="location.href='index.php'; return false;">
        </ul>
        </div>
    </body>
</html>